﻿using System;
using System.ComponentModel;
using System.Windows.Forms;

namespace Pbp.Components
{
    public partial class CustomGroupBox : Panel
    {
        [Description("Title of the groupbox"), Category("CustomGroupBox"), DefaultValue("Title"), Localizable(true)]
        public String Title 
        { 
            get 
            { 
                return labelTitle.Text; 
            } 
            set
            { 
                labelTitle.Text = value; 
            } 
        }

        public CustomGroupBox()
        {
            InitializeComponent();
        }

        private void CustomGroupBox_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
        {
            this.panelTitleBG.Size = new System.Drawing.Size(this.Width, 28);
        }
    }
}